import re
ret = re.match(r"[1-9]?\d$","08")
if ret:
    print(ret.group())
else:
    print("不在 0-100 之间")
# 添加|
ret = re.match(r"[1-9]?\d$|100","8")
print(ret.group()) # 8
ret = re.match(r"[1-9]?\d$|100","78")
print(ret.group()) # 78
ret = re.match(r"[1-9]?\d$|100","08")
if ret:
    print(ret.group())

tels = ["13100001234", "18912344321", "10086", "18800007777"]
for tel in tels:
    ret = re.match(r"1\d{9}[0-35-68-9]$", tel)
    if ret:
         print(ret.group())
    else:
         print("%s 不是想要的手机号" % tel)